package com.cn.util;

public class TwoWeiArray {
    public static void main(String[] args) {
//        int[] arr = {1, 3, 5};

        int[][] arrays = {
                {2, 3},
                {3, 4, 1, 5},
                {3}
        };
        int[][] aaa = new int[][]{
                new int[]{3},
                new int[]{2}
        };
//        一维数组的遍历
        int sum = 0;
        for (int i = 0; i < arrays.length; i++) {
//            int[] arr = arrays[i];//得到一维数组里面的元素
//            对里面的一维数组再次遍历
            for (int j = 0; j < arrays[i].length; j++) {
                System.out.print(arrays[i][j] + "  ");
                sum += arrays[i][j];
            }
            System.out.println("");
        }
        System.out.println(sum);
//        int[][][] arraysaa = {{{1}, {2}}, {{3}}, {{3, 4}}};
        Object[] a = {"aa", 2, true, null};
    }
}
